package com.demo;

public class T3 {
    public static void main(String[] args) {
        System.out.println(judgeRecttangle(new int[]{1,2,1,2}));
    }
    public static boolean judgeRecttangle(int[] length){
        if (length.length != 4) return false;

        return ((length[0] == length[1] && length[2] == length[3])
                || (length[0] == length[2] && length[1] == length[3]));
    }
}